package cn.edu.scau.cmi.houzhicong.adapterPattern.adapter;

import cn.edu.scau.cmi.houzhicong.adapterPattern.domain.AC220;
import cn.edu.scau.cmi.houzhicong.adapterPattern.domain.DC5;

public class ObjectAdapter implements DC5 {
    private AC220 mAC220;

    public ObjectAdapter(AC220 ac220){
        this.mAC220 = ac220;
    }

    @Override
    public int output5V() {
        int output = 0;
        if (mAC220 != null) {
            output = mAC220.output220V() / 44;
        }
        return output;
    }
}
